//
//  UIBarButtonItem-extension.swift
//  zhuWEIBO1
//
//  Created by STW-02 on 18/10/30.
//  Copyright © 2018年 STW-02. All rights reserved.
//

import UIKit

extension UIBarButtonItem {
    convenience init(imageName : String) {
         let  btn = UIButton()
        btn.setImage(UIImage(named:imageName), for: UIControlState())
        btn.setImage(UIImage(named:imageName + "_highlighted"), for: .highlighted)
        btn.sizeToFit()
        self.init(customView: btn)
    }

}
